package com.snake.springboot.authority.dao.mybatis.mappers;

import com.snake.springboot.authority.dao.mybatis.entity.AuthStrategyDO;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AuthStrategyMapper {

    int delete(String strategyId);

    int insert(AuthStrategyDO record);

    int update(AuthStrategyDO record);
    
    AuthStrategyDO findById(String strategyId);

    List<AuthStrategyDO> findByCondition(AuthStrategyDO condition);

    List<AuthStrategyDO> findDefaultBySystem(@Param("systemIds") List<String> systemIds);
}